package com.example.holamundodaniel;


import gueei.binding.Binder;
import gueei.binding.Command;
import gueei.binding.observables.StringObservable;
import android.os.Bundle;
import android.view.View;
import android.app.Activity;
import android.content.Intent;


public class Holamundodaniel_viewModel extends Activity {

	public StringObservable sSaludo = new StringObservable("Hola Danielito");

	public Command CambiarSaludo = new Command(){
		public void Invoke(View arg0,Object... arg1){
    		sSaludo.set("Hola Feo");
    	}
	};
	
    @SuppressWarnings("deprecation")
		@Override
		public void onCreate(Bundle savedInstanceState) {
	    	super.onCreate(savedInstanceState);
	    	Binder.setAndBindContentView(this, R.layout.holamundodaniel_view, this);
	    }
    
    public Command AbrirUsuarios= new Command(){
    	public void Invoke(View arg0,Object... arg1){
    		listViewViewModel();
    	}
    	
    };
    private void listViewViewModel()
    {
		Intent intent = new Intent(this,Usuarios_viewmodel.class);
		startActivity(intent);
		finish();
    }
}
